<template>
  <div class="collapse">
    <div class="main" @click="isShow = !isShow">{{main}}
      <slot></slot>
    </div>
    <div class="child" >
    {{child}} 
      <slot name="lala"></slot>
    </div>
    <div>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props:{
    main:{
      type:String,
      required:true
    },
    child:{
      type:String,
      required:true
    }
  },
  name: 'HelloWorld',
  data(){
    return {
      isShow:false
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
